package com.gsh.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Electricity implements Cloneable{
    private int iid;
    private int uid=3;
    private Date iDate;//数据日期
    private Date lDate;//数据入库日期
    private String measuringPoint;//测量点名称
    private int errType;//相序类型
    private int iMoment;//时刻
    private double iDataValue;//电流数据
    private int capacity=50;//运行容量
    private String fom="高供低计";//计量方式

    @Override
    public String toString() {
        return "Electricity{" +
                "iid=" + iid +
                ", uid=" + uid +
                ", IDate=" + iDate +
                ", lDate=" + lDate +
                ", measuringPoint='" + measuringPoint + '\'' +
                ", errType=" + errType +
                ", iMoment=" + iMoment +
                ", iDataValue=" + iDataValue +
                ", capacity=" + capacity +
                ", fom='" + fom + '\'' +
                '}';
    }


    @Override
    public Electricity clone(){
        Electricity electricity=null;
        try {
            electricity=(Electricity) super.clone();
        }catch (Exception e){
            e.printStackTrace();
        }
        return electricity;
    }
}
